micro_utils.dokka
0.14.2
android
common
jvm
micro_utils.dokka
/
dev.inmo.micro_utils.common
/
[android]EitherFirst
Either
First
android
data
class
EitherFirst
<
T1
,
T2
>
(
val
t1
:
T1
)
:
Either
<
T1
,
T2
>
This type
Either
will always have not nullable
optionalT1
Constructors
Properties
Extensions
Constructors
Either
First
Link copied to clipboard
android
fun
<
T1
>
EitherFirst
(
t1
:
T1
)
Properties
optional
T1
Link copied to clipboard
android
open
override
val
optionalT1
:
Optional
<
T1
>
optional
T2
Link copied to clipboard
android
open
override
val
optionalT2
:
Optional
<
T2
>
t1
Link copied to clipboard
android
val
t1
:
T1
t1Or
Null
Link copied to clipboard
android
open
val
t1OrNull
:
T1
?
t2Or
Null
Link copied to clipboard
android
open
val
t2OrNull
:
T2
?
Extensions
map
On
First
Link copied to clipboard
android
common
jvm
inline
fun
<
T1
,
R
>
Either
<
T1
,
*
>
.
mapOnFirst
(
block
:
(
T1
)
->
R
)
:
R
?
inline
fun
<
T1
,
R
>
Either
<
T1
,
*
>
.
mapOnFirst
(
block
:
(
T1
)
->
R
)
:
R
?
inline
fun
<
T1
,
R
>
Either
<
T1
,
*
>
.
mapOnFirst
(
block
:
(
T1
)
->
R
)
:
R
?
map
On
Second
Link copied to clipboard
android
common
jvm
inline
fun
<
T2
,
R
>
Either
<
*
,
T2
>
.
mapOnSecond
(
block
:
(
T2
)
->
R
)
:
R
?
inline
fun
<
T2
,
R
>
Either
<
*
,
T2
>
.
mapOnSecond
(
block
:
(
T2
)
->
R
)
:
R
?
inline
fun
<
T2
,
R
>
Either
<
*
,
T2
>
.
mapOnSecond
(
block
:
(
T2
)
->
R
)
:
R
?